package com.db.ionio.serialization;

/**
 * @author Alexander Kotov (kotov.alex.22@gmail.com)
 */
public class ClientApp {
    public static void main(String[] args) {
        if (args.length < 3) {
            System.out.format("Usage: %s <host> <port> <elements_count>%n", ClientApp.class.getName());
            System.exit(1);
        }

        String hostName = args[0];
        int port = Integer.parseInt(args[1]);
        int elements = Integer.parseInt(args[2]);
        SerializationClient client = new SerializationClient(hostName, port, elements);
        client.run();
    }
}
